﻿using System.Data.Entity.ModelConfiguration;
using Nop.Plugin.Payments.Cielo.Domain;

namespace Nop.Plugin.Payments.Cielo.Data
{
    public partial class PaymentCieloRecordMap : EntityTypeConfiguration<PaymentCieloRecord>
    {
        public PaymentCieloRecordMap()
        {
            this.ToTable("PaymentCieloConfig");
            this.HasKey(x => x.Id);
            this.Property(x => x.UrlProducao).IsRequired().HasMaxLength(350);
            this.Property(x => x.UrlTeste).IsRequired().HasMaxLength(350);
            this.Property(x => x.UrlRetorno).IsRequired().HasMaxLength(350);

            this.Property(x => x.Cielo).IsRequired().HasMaxLength(350);
            this.Property(x => x.CieloChave).IsRequired().HasMaxLength(350);

            this.Property(x => x.Loja).IsRequired().HasMaxLength(350);
            this.Property(x => x.LojaChave).IsRequired().HasMaxLength(350);
        }
    }
}
